package com.Test;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.List;

public class ArraysListTest {
    public static void main(String[] args) {
        ArrayList<List<Integer>> list = new ArrayList<>();
        ArrayDeque<Integer> stack = new ArrayDeque<>();

        stack.addLast(1);
        stack.addLast(2);
        stack.addLast(3);

        list.add(new ArrayList<>(stack));
        list.add(new ArrayList<>(stack));
        list.add(new ArrayList<>(stack));
        for (List<Integer> integers : list) {
            System.out.println(integers);
        }

    }
}
